/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/*
 * Menu.java
 *
 * Created on 18/09/2010, 17:22:35
 */

package br.edu.ifrn.gui;

import javax.swing.JOptionPane;

/**
 *
 * @author Elias Costa
 */
public class Menu extends javax.swing.JFrame {

    /** Creates new form Menu */
    public Menu() {
        initComponents();
    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jMenuBar1 = new javax.swing.JMenuBar();
        jMenu1 = new javax.swing.JMenu();
        Altadm = new javax.swing.JMenuItem();
        sair = new javax.swing.JMenuItem();
        jMenu = new javax.swing.JMenu();
        Cadastpesq = new javax.swing.JMenuItem();
        Buscpesq = new javax.swing.JMenuItem();
        Editpesq = new javax.swing.JMenuItem();
        Excpesq = new javax.swing.JMenuItem();
        jMenu3 = new javax.swing.JMenu();
        Cadastrel = new javax.swing.JMenuItem();
        Buscrel = new javax.swing.JMenuItem();
        Editrel = new javax.swing.JMenuItem();
        Excrel = new javax.swing.JMenuItem();
        jMenu4 = new javax.swing.JMenu();
        Sobreajuda = new javax.swing.JMenuItem();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);

        jPanel1.setBackground(new java.awt.Color(255, 255, 255));

        jLabel1.setIcon(new javax.swing.ImageIcon("C:\\Users\\Elias C\\Documents\\NetBeansProjects\\ProjetoIC\\src\\Imagens\\Logo.jpg")); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jMenuBar1.setBorder(new javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jMenuBar1.setCursor(new java.awt.Cursor(java.awt.Cursor.DEFAULT_CURSOR));

        jMenu1.setText("Administrador");

        Altadm.setText("Alterar Informações");
        Altadm.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                AltadmActionPerformed(evt);
            }
        });
        jMenu1.add(Altadm);

        sair.setText("Sair");
        sair.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                sairActionPerformed(evt);
            }
        });
        jMenu1.add(sair);

        jMenuBar1.add(jMenu1);

        jMenu.setText("Pesquisador");

        Cadastpesq.setText("Cadastrar");
        Cadastpesq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CadastpesqActionPerformed(evt);
            }
        });
        jMenu.add(Cadastpesq);

        Buscpesq.setText("Buscar");
        Buscpesq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscpesqActionPerformed(evt);
            }
        });
        jMenu.add(Buscpesq);

        Editpesq.setText("Editar");
        Editpesq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EditpesqActionPerformed(evt);
            }
        });
        jMenu.add(Editpesq);

        Excpesq.setText("Excluir");
        Excpesq.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ExcpesqActionPerformed(evt);
            }
        });
        jMenu.add(Excpesq);

        jMenuBar1.add(jMenu);

        jMenu3.setText("Relatório");

        Cadastrel.setText("Cadastrar");
        Cadastrel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                CadastrelActionPerformed(evt);
            }
        });
        jMenu3.add(Cadastrel);

        Buscrel.setText("Buscar");
        Buscrel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                BuscrelActionPerformed(evt);
            }
        });
        jMenu3.add(Buscrel);

        Editrel.setText("Editar");
        Editrel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                EditrelActionPerformed(evt);
            }
        });
        jMenu3.add(Editrel);

        Excrel.setText("Excluir");
        Excrel.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                ExcrelActionPerformed(evt);
            }
        });
        jMenu3.add(Excrel);

        jMenuBar1.add(jMenu3);

        jMenu4.setText("Ajuda");

        Sobreajuda.setText("Sobre");
        Sobreajuda.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                SobreajudaActionPerformed(evt);
            }
        });
        jMenu4.add(Sobreajuda);

        jMenuBar1.add(jMenu4);

        setJMenuBar(jMenuBar1);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(62, 62, 62)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(62, Short.MAX_VALUE))
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void CadastpesqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastpesqActionPerformed
        cp.setVisible(true);
    }//GEN-LAST:event_CadastpesqActionPerformed

    private void CadastrelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_CadastrelActionPerformed
        cr.setVisible(true);
    }//GEN-LAST:event_CadastrelActionPerformed

    private void BuscpesqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscpesqActionPerformed
        bp.setVisible(true);
    }//GEN-LAST:event_BuscpesqActionPerformed

    private void EditpesqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EditpesqActionPerformed
        ep.setVisible(true);
    }//GEN-LAST:event_EditpesqActionPerformed

    private void ExcpesqActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ExcpesqActionPerformed
        exp.setVisible(true);
    }//GEN-LAST:event_ExcpesqActionPerformed

    private void BuscrelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_BuscrelActionPerformed
        br.setVisible(true);
    }//GEN-LAST:event_BuscrelActionPerformed

    private void EditrelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_EditrelActionPerformed
        er.setVisible(true);
    }//GEN-LAST:event_EditrelActionPerformed

    private void ExcrelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_ExcrelActionPerformed
        exr.setVisible(true);
    }//GEN-LAST:event_ExcrelActionPerformed

    private void sairActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_sairActionPerformed
        dispose();
    }//GEN-LAST:event_sairActionPerformed

    private void AltadmActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_AltadmActionPerformed
       JOptionPane.showMessageDialog(null,"A ser implementado");
    }//GEN-LAST:event_AltadmActionPerformed

    private void SobreajudaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_SobreajudaActionPerformed
       sb.setVisible(true);
    }//GEN-LAST:event_SobreajudaActionPerformed

    /**
    * @param args the command line arguments
    */


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JMenuItem Altadm;
    private javax.swing.JMenuItem Buscpesq;
    private javax.swing.JMenuItem Buscrel;
    private javax.swing.JMenuItem Cadastpesq;
    private javax.swing.JMenuItem Cadastrel;
    private javax.swing.JMenuItem Editpesq;
    private javax.swing.JMenuItem Editrel;
    private javax.swing.JMenuItem Excpesq;
    private javax.swing.JMenuItem Excrel;
    private javax.swing.JMenuItem Sobreajuda;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JMenu jMenu;
    private javax.swing.JMenu jMenu1;
    private javax.swing.JMenu jMenu3;
    private javax.swing.JMenu jMenu4;
    private javax.swing.JMenuBar jMenuBar1;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JMenuItem sair;
    // End of variables declaration//GEN-END:variables
    private CadastrarPesquisador cp = new CadastrarPesquisador();
    private CadastroDeRelatorioTC cr = new CadastroDeRelatorioTC();
    private BuscarPesquisador bp = new BuscarPesquisador();
    private BuscarRelatorioTC br = new BuscarRelatorioTC();
    private EditarPesquisador ep = new EditarPesquisador();
    private EditarRelatorioTC er = new EditarRelatorioTC();
    private ExcluirPesquisador exp = new ExcluirPesquisador();
    private ExcluirRelatorioTC exr = new ExcluirRelatorioTC();
    private Sobre sb = new Sobre();
}
